package com.xushu.app;


import com.xushu.app.service.IAService;
import com.xushu.app.service.IBService;
import com.xushu.app.service.IUserService;
import com.xushu.app.service.UserService;
import com.xushu.springframework.XushuApplicationContext;

public class MyApplication {

    public static void main(String[] args) throws Exception {
        XushuApplicationContext ioc = new XushuApplicationContext(AppConfig.class);




        IAService aService = (IAService) ioc.getBean("AService");
        System.out.println(aService.getClass());
        // 2个线程
        IBService bService = (IBService) ioc.getBean("BService");
        bService.say();
    }
}
